package ch.bfh.ti.barcode.multiple;

import java.util.EventListener;

/**
 * This interface is used to tell the listener when a new barcode is ready to be
 * processed. The MultipleCodeGenerator controls the frequency of codes being
 * processed by any class listening to this EventListener.
 * 
 * @author Dominik von Burg
 * 
 */
public interface CodeEventListener extends EventListener {
	/**
	 * This method is called when a new barcode image is being generated and has
	 * to be processed.
	 * 
	 * @param e
	 *            The CodeEvent instance with the generated barcode image.
	 */
	public void codeSent(CodeEvent e);
}
